package com.imooc.sell.enums;

import lombok.Getter;

/**
 * @Description //TODO
 * @Author whf15
 * @Date 15:07 2021/10/20
 **/
@Getter
public enum OrderStatusEnum implements CodeEnum {
    New(0, "新订单"),
    FINISH(1, "完结"),
    CANCEL(2, "已取消");
    private Integer code;
    private String message;

    OrderStatusEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

//    public static OrderStatusEnum getOrderStatusEnum(Integer code){
//        for(OrderStatusEnum orderStatusEnum:OrderStatusEnum.values()){
//            if (orderStatusEnum.getCode().equals(code)){
//                return orderStatusEnum;
//            }
//        }
//        return null;
//    }
}
